﻿<ion-view cache-view="false" ng-init="init()">
  <ion-nav-bar class="bar-positive bar" align-title="center">
    <ion-nav-back-button ng-click="klyBack()"></ion-nav-back-button>
    <ion-nav-title>
      <button class="tab-btn button nav-btn-left" ng-class="istx ? 'current': ''" ng-click="showlist(1)">交易记录</button>
      <button class="tab-btn button nav-btn-right" ng-class="!istx ? 'current': ''" ng-click="showlist(2)">提现记录</button>
    </ion-nav-title>    
  </ion-nav-bar>
  <ion-content class="gray_back">
    <section class="g_main">      
      <section class="cert_guide_list">
        <ion-scroll style="height:{{scorllHeight}}px" delegate-handle="corplistscroll">
          <div style="height:{{listHeight}}px">          
            <ion-list>
              <ul ng-if="istx">          
                <li ng-repeat="item in tx_flow" style="height:50px"><SPAN style="line-height: 25px;float:left;height:50px;">{{item.create_time}}<BR>{{item.state}}</SPAN><SPAN style="width: 160px;line-height: 25px;float:right;height:50px;">交易金额：{{item.amount}}元<BR>交易类型: {{item.remark}}</SPAN></li>
              </ul>
              <ul ng-if="!istx">          
                <li ng-repeat="item in withdraw_list" style="height:50px"><SPAN style="line-height: 25px;float:left;height:50px;">{{item.create_time}}<BR>{{item.state}}</SPAN><SPAN style="width: 160px;line-height: 25px;float:right;height:50px;">提现金额：{{item.amount}}元<BR>状态: {{item.remark}}</SPAN></li>
              </ul>
            </ion-list>
            <ion-infinite-scroll on-infinite="loadMoreRecord()" distance="1" ng-show="showprogress"></ion-infinite-scroll>
          </div>          
        </ion-scroll>        
      </section>
    </section>
  </ion-content>
</ion-view>